package com.IntelligentCommunity.community.domain;

import com.IntelligentCommunity.common.core.annotation.Excel;
import com.IntelligentCommunity.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 实有单位对象 real_unit
 *
 * @author IntelligentCommunity
 * @date 2024-07-23
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RealUnit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，唯一标识 */
    private Long id;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String name;

    /** 法定代表人 */
    @Excel(name = "法定代表人")
    private Long populationId;

    /** 成立日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成立日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date establishmentDate;

    /** 单位地址 */
    @Excel(name = "单位地址")
    private String address;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 小区 id */
    @Excel(name = "小区 id")
    private Long districtId;

    private String communityName;

    private String populationName;

    private String image;
    private String iphone;
    private String idCard;
    private String unitname;
    private String min;
    private String max;
    private String min1;
    private String max1;
}
